﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="MyEmplyeeContract.aspx.cs" Inherits="MyEmplyeeContract" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script>
        function hide(parameters) {
            $(parameters).hide();
            $("#qianshuzhong").show();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div>
        <ul class="formul">
            <li><span class="formtitle">用户名</span>
                <asp:Label ID="EmpolyeeName" runat="server"></asp:Label>
            </li>
            <li><span class="formtitle">登录帐号</span>
                <asp:Label ID="LoginName" runat="server"></asp:Label>
            </li>
            <li><span class="formtitle">状态</span>
                <asp:Label ID="txtStatus" runat="server"></asp:Label>
            </li>
            <li><span class="formtitle">入职时间</span>
                <asp:Label ID="txtEntryTime" runat="server"></asp:Label>
            </li>
            <li>
                <span class="formtitle">年龄</span>
                <asp:Label runat="server" ID="txtAge"></asp:Label>
            </li>
            <li>
                <span class="formtitle">性别</span>
                <asp:Label runat="server" ID="txtGender"></asp:Label>
            </li>
            <li><span class="formtitle">生日</span>
                <asp:Label ID="txtBirthday" runat="server"></asp:Label>
            </li>
            <li><span class="formtitle">电话</span>
                <asp:Label ID="txtPhone" runat="server"></asp:Label>
            </li>
            <li><span class="formtitle">地址</span>
                <asp:Label ID="txtAddress" runat="server"></asp:Label>
            </li>
            <li><span class="formtitle">身份证号</span>
                <asp:Label ID="txtIdCard" runat="server"></asp:Label>
            </li>
            <li><span class="formtitle">基本工资</span>
                <asp:Label ID="labBasicWage" runat="server"></asp:Label>
            </li>
            <li><span class="formtitle">生活补贴</span>
                <asp:Label ID="labLivingSubsidy" runat="server"></asp:Label>
            </li>
            <li><span class="formtitle">保密费</span>
                <asp:Label ID="labConfidential" runat="server"></asp:Label>
            </li>
            <li><span class="formtitle">其他</span>
                <asp:Label ID="labOther" runat="server"></asp:Label>
            </li>
             <li><span class="formtitle">合计</span>
                <asp:Label ID="labAll" runat="server"></asp:Label>
            </li>
            <li>
                <div id="ContractDiv" runat="server">
                    <span class="formtitle">待签署合同</span>
                    <asp:DropDownList ID="DropDownList1" runat="server">
                    </asp:DropDownList>
                    &nbsp;&nbsp;
                    <asp:Button ID="Button1" runat="server" Text="签署" OnClick="Button1_Click" OnClientClick="hide(this)" />&nbsp;&nbsp;
                    <div style="display: none;" id="qianshuzhong">正在签署，请稍后...</div><a href="../Upload/合同.doc"> 预览合同</a>
                </div>
            </li>            
        </ul>
        <h2>
            我的合同</h2>
        <asp:GridView ID="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound"
            AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand">
            <Columns>
                <asp:BoundField DataField="ContractId" HeaderText="合同编号" SortExpression="ContractId" />
                <asp:BoundField DataField="StartTime" HeaderText="开始时间" SortExpression="StartTime" />
                <asp:BoundField DataField="EndTime" HeaderText="终止时间" SortExpression="EndTime" />
                <asp:BoundField DataField="Status" HeaderText="合同状态" SortExpression="Status" />
                <asp:TemplateField>
                    <HeaderTemplate>
                        操作</HeaderTemplate>
                    <ItemTemplate>
                        <a href="<%#Eval("path") %>" style='display: <%#Eval("Status").ToString() =="1" || Eval("Status").ToString() =="2" ?"":"none"%>'>
                            下载合同</a>
                        <asp:LinkButton ID="LinkContract" runat="server" CausesValidation="False" CommandName="Contract"
                            Visible="False" CommandArgument='<%#Eval("EmplyeeID") %>' Text="签署"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        
         <h2>
            工资变更记录</h2>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="ChangeTime" HeaderText="变更时间" SortExpression="ChangeTime" />
                <asp:BoundField DataField="Operator" HeaderText="操作者" SortExpression="Operator" />
                <asp:BoundField DataField="Remark" HeaderText="备注" SortExpression="Remark" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
